/* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Security Token Service
Security Token Service API

OpenAPI spec version: v1
Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/


#ifndef StsApiModel_h
#define StsApiModel_h
#import <JDCloudOCSDKCore/JDCloudOCSDKCore.h>
#import <JDCloudOCSDKSts/StsModel.h>


@interface StsAssumeRoleRequest:JDCloudRequest

/// 扮演角色参数
@property (strong,nonatomic,nonnull)  AssumeRoleInfo*  assumeRoleInfo;
-(id) initWithRegion:(NSString *)regionId
assumeRoleInfo:(AssumeRoleInfo*)assumeRoleInfo;

-(id) initWithRegion:(NSString *)regionId
             version:(NSString *)version
assumeRoleInfo:(AssumeRoleInfo*)assumeRoleInfo;

@end

@interface StsAssumeRoleResult : NSObject
/// 凭证信息
 @property (strong,nonatomic,nonnull)  Credentials*  credentials;

-(NSMutableDictionary*) dictionary;

-(id) initWithDic:(NSDictionary*)dictionary;
-(id) initWithCredentials:(Credentials*) credentials;
@end

@interface StsAssumeRoleResponse : NSObject

@property NSString* requestId;

@property ServiceError* error;

@property StsAssumeRoleResult* result;

-(NSMutableDictionary*) dictionary;

-(id) initWithDic:(NSDictionary*)dictionary;

-(id) initWithRequestId:(NSString*) requestId
        error:(ServiceError*) error
        result:(StsAssumeRoleResult*) result;
@end

#endif /* StsApiModel_h */
